package net.game.server.io.net;

import net.game.server.util.log.Logger;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.ChannelStateEvent;
import org.jboss.netty.channel.SimpleChannelHandler;

public class ConnectionHandler extends SimpleChannelHandler {

    @Override
    public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        Logger.put("Accepted connection <" + e.getChannel().getRemoteAddress() + ">");
    }

    @Override
    public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
        Logger.put("Disconnected <" + e.getChannel().getRemoteAddress() + ">");
    }
}
